<?php

// mbilling/BillingBundle/Entity/templates.php
namespace mbilling\BillingBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * @ORM\Entity
 */
class templates
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    protected $id;
 
    /**
     * @ORM\Column(type="string", length=100)
     * @assert\NotBlank
     */
    protected $name;
    
    /**
     * @ORM\Column(type="string", length=100)
     * @assert\NotBlank
     */
    protected $human_name;
    
    /**
     * @ORM\Column(type="string", length=100, nullable="TRUE")
     */
    protected $theme;
    
    /**
     * @ORM\Column(type="string", length=1024)
     * @assert\NotBlank
     */
    protected $body;

    public function setId($id)
    {
        $this->id = $id;
    }
    public function getId()
    {
        return $this->id;
    }

    public function setName($name)
    {
        $this->name = $name;
    }
    public function getName()
    {
        return $this->name;
    }

    public function setHumanName($human_name)
    {
        $this->human_name = $human_name;
    }
    public function getHumanName()
    {
        return $this->human_name;
    }
    
    public function setTheme($theme)
    {
        $this->theme = $theme;
    }
    public function getTheme()
    {
        return $this->theme;
    }
    
    public function setBody($body)
    {
        $this->body = $body;
    }
    public function getBody()
    {
        return $this->body;
    }
    
    public function initDefaultEntity()
    {
        $this->setName('new_order_user');
        $this->setHumanName('Письмо пользователю о новом заказе');
        $this->setTheme('тема');
        $this->setBody('тело');
        return $this;
    }
}
?>
